package com.lujianfei.imagesearch.contract;

import java.awt.Component;
import java.awt.image.BufferedImage;

import com.lujianfei.imagesearch.base.BasePresenter;
import com.lujianfei.imagesearch.base.BaseView;

public interface MainContract {

	interface View extends BaseView {
		Component getContext();

		void setImage(String absolutePath,int type);

		BufferedImage getImage();

		void updateImage();

	}
	
	abstract class Presenter extends BasePresenter<View> {

		public Presenter(View mView) {
			super(mView);
			// TODO Auto-generated constructor stub
		}

		public abstract void openFile(int type);

	}
}
